package com.recharge.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.recharge.common.result.ResultDO;
import com.recharge.core.entity.DepositEntity;
import com.recharge.domain.query.DepositQueryDO;
import com.recharge.domain.vo.DepositDO;

/**
 * <p>
 * 存款单表 服务类
 * </p>
 *
 * @author reagan
 * @since 2020-08-19
 */
public interface DepositService extends IService<DepositEntity> {

    ResultDO add(DepositDO domain);

    ResultDO edit(DepositDO domain);

    ResultDO get(String id);

    ResultDO remove(String id);

    /**
     * 根据代理商ID删除待审核记录
     * @param id
     * @return
     */
    ResultDO removeByMerchantId(String id);

    ResultDO find(DepositQueryDO domain);

    /**
     * 查询存款记录详情列表
     * @param domain
     * @return
     */
    ResultDO findList(DepositQueryDO domain);

    /**
     * 添加存款记录
     * @param domain
     * @return
     */
    ResultDO applyDeposit(DepositDO domain, String userName);

    /**
     * 审核加款申请
     * @param domain
     * @return
     */
    ResultDO verifyDeposit(DepositDO domain, String userName);

    /**
     * 关闭长期授信
     * @param domain
     * @return
     */
//    ResultDO closeCredit(DepositDO domain);


//    ResultDO getIds(String id);
}
